public GiveItemOnRoundStart(){
	CreateTimer(40.0,giveRSItems);
}

public Action:giveRSItems(Handle:timer){
  for (new client = 1; client <= MaxClients; client++)
	{
		if (IsClientInGame(client) && GetClientTeam(client)== 2)
		{
			GiveItem(client, "defibrillator");
			GiveItem(client, "pain_pills");
			//gives throwables
			switch(GetRandomInt(0, 2))
				{
				case 0: {
					GiveItem(client, "pipe_bomb");
				}
				case 1: {
					GiveItem(client, "molotov");
				}
				case 2: {
					GiveItem(client, "vomitjar");
				}
				}			
		}
	}
    
}


//Functions that gives items/upgrades
GiveItem(Client, String:Item[22])
{
	new flags = GetCommandFlags("give");
	SetCommandFlags("give", flags & ~FCVAR_CHEAT);
	FakeClientCommand(Client, "give %s", Item);
	SetCommandFlags("give", flags|FCVAR_CHEAT);
}